package com.yin.spring5.bean;

import org.springframework.beans.factory.FactoryBean;

/**
 * MyFactoryBean
 *
 * @author Yin Guiqing
 */
public class MyFactoryBean implements FactoryBean<Course> {
    @Override
    public Course getObject() throws Exception {
        return new Course();
    }

    @Override
    public Class<?> getObjectType() {
        return null;
    }

    @Override
    public boolean isSingleton() {
        return false;
    }
}
